package Asgmt1.gameui.utils;

import javax.imageio.ImageIO;
import java.awt.*;
import java.io.File;
import java.io.IOException;

public class ImageUtil {
    /*
     * 获取游戏图标
     */
    public static Image getDiceIcon(){
        Image diceIcon = null;
        try {
            diceIcon = ImageIO.read(new File("src\\Asgmt1\\gameui\\images\\Dice.png"));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return diceIcon;
    }
}
